function [ F_Harmonics, t, ydata, z1, y, Yfft, delta_t, L, Tp ] = FlowOnlyFunc( inputAxes, ...
    SaveLocation, InputFilesLocation, instructionText, EchoTypeNum, uploadFlag  )
%UNTITLED Summary of this function goes here
%   Detailed explanation goes here
%% Error Checking and import validation
%%Documentation everything

%% Overall Program 

%% Step 0 Add to path needed functions

cd(InputFilesLocation)

%% Import Error Checking

% Get flow path (and convert jpeg image to dicom if necessary)
set(instructionText, 'string', 'Please select the dicom file containing the echo data you wish to use as input')
if EchoTypeNum == 0 % dicom image
    [filePathFlow] = getFilePath('*.dcm', 'dicom');
else % jpeg image, must be converted to dicom
    [pathName, fileNameFlow] = getFlowPath('*.jpg', 'jpeg');
    pathsAndNames = cell(1,2);
    pathsAndNames(1) = cellstr(strcat(pathName, fileNameFlow));
    pathsAndNames(2) = cellstr(fileNameFlow(1:end-4));
    saveLocation = pathName(1:end-1);
    writeDicoms( pathsAndNames, saveLocation );
    filePathFlow = strcat(pathName, fileNameFlow(1:end-3)); filePathFlow = strcat(filePathFlow, 'dcm');
end


%% Import Files/Data


% Flow - will import dicom file (.dcm) into Object

dicomImg = dicomread(filePathFlow);

[SaveLocation] = createFigureDirectory(SaveLocation, 'FlowResults');

%% Step 2 Import and Process Flow Data

Flow = dicomAnalysisGUI(dicomImg, inputAxes, instructionText);

% Save diagnostic figures

saveas(Flow.sampledEcgPlot, strcat(SaveLocation, '/', 'SampledEcgOverlay.jpg'));
saveas(Flow.ecgGatedVelPlot, strcat(SaveLocation, '/', 'SampledVelocityOverlay.jpg'));


%% Step 4 Caclulate FFT of both Pressure and Flow waveforms

% Flow FFT
[Flow.FFT_Outputs, Flow.FigFFT, t, ydata, z1, y, Yfft, delta_t, L, Tp] = fftGeneralWithMoreOutputs(Flow.velocity, Flow.time, 'Flow');
saveas(Flow.FigFFT, strcat(SaveLocation, '/', 'FFT_FlowSanityCheckPlot.jpg'));


%% Step 5 Cacluate Impedence at Each Harmonic

F_Harmonics = Flow.FFT_Outputs;


%% Step 7 Export Data

end

